import request from '@/utils/request'
export default {
  getList(currentPage,pageSize,cardSearch){
    return request({
      url: `/memberCard/search/${currentPage}/${pageSize}`,
      method: 'post',
      data: cardSearch
    })
  },
  getById(id){
    return request({
      url: `/memberCard/${id}`,
      method: 'get'
    })
  },
  modifyMoney(id,money){
    return request({
      url: `/memberCard/${id}/${money}`,
      method: 'put'
    })
  },
  delete(id){
    return request({
      url: `/memberCard/${id}`,
      method: 'delete'
    })
  }
}
